﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddUserRole.aspx.cs" Inherits="Com.CMS263.Web.manage.adminUser.AddUserRole" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <link href="../common/validator.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_1">
            <tr>
                <td class="tdside" align="center">
                    <asp:GridView ID="GridView1" Width="100%" runat="server" AutoGenerateColumns="False"
                        OnRowCommand="GridView1_RowCommand" AllowPaging="True" PageSize="100" OnRowDataBound="GridView1_RowDataBound">
                        <Columns>
                            <asp:BoundField DataField="Id" HeaderText="编号" SortExpression="Id" />
                            <asp:TemplateField HeaderText="名称" SortExpression="roleName">
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("roleName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="权限">
                                <ItemTemplate>
                                    <asp:Button ID="btnPower" runat="server" CommandArgument='<%#Eval("id") %>' CommandName="btnPower"
                                        Text="权限分配" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="删除">
                                <ItemTemplate>
                                    <asp:Button ID="btnDel" runat="server" CommandArgument='<%#Eval("id") %>' CommandName="btnDel"
                                        Text="删除" OnClientClick='return confirm("确认删除吗？");' />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="tdside" align="right">
                </td>
            </tr>
        </table>
        <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_1">
            <tr>
                <td class="tdside" align="center">
                    角色名:
                </td>
                <td class="tdside" align="center">
                    <asp:TextBox ID="roleName" runat="server" Width="220px"></asp:TextBox>角色名称添加后不可修改
                </td>
            </tr>
            
            <tr>
                <td colspan="2" align="center">
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加角色" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
